package springcloud.service.impl;

import cn.xjt.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springcloud.dao.DeptDao;
import springcloud.service.DeptService;

import java.util.List;

/**
 * 内容：
 *
 * @author
 * @date 2021/2/27-16:55
 */

@Service
public class DeptServiceImpl implements DeptService {

	@Autowired
	DeptDao deptDao;

	public boolean addDept(Dept dept) {
		boolean b = deptDao.addDept(dept);
		return b;
	}

	public Dept selectDept(Long id) {
		return deptDao.selectDept(id);
	}

	public List<Dept> selectAll() {
		return deptDao.selectAll();
	}
}
